
export const types = {
  authorization: 'authorization',
  login: 'login',
  shoppingNum: 'shoppingNum',
  maxBookNum: 'maxBookNum',
  userInfo: 'userInfo',
  phoneNum: 'phoneNum',
  userVipInfo: 'userVipInfo',
  orderAddress: 'orderAddress',
  orderVipCard: 'orderVipCard',
  vipCardNum: 'vipCardNum',
};

export default {
  [types.authorization](state, payload) {
    state.mineState.authorization = payload;
  },
  [types.login](state, payload) {
    state.mineState.login = payload;
  },
  [types.userInfo](state, payload) {
    state.mineState.userInfo = payload;
  },
  [types.phoneNum](state, payload) {
    state.mineState.phoneNum = payload;
  },
  [types.vipCardNum](state, payload) {
    state.mineState.vipCardNum = payload;
  },
  [types.userVipInfo](state, payload) {
    state.mineState.userVipInfo = payload;
  },
  [types.shoppingNum](state, payload) {
    state.mineState.shoppingNum = payload;
  },
  [types.maxBookNum](state, payload) {
    state.mineState.maxBookNum = payload;
  },
  [types.orderAddress](state, payload) {
    state.mineState.orderAddress = payload;
  },
  [types.orderVipCard](state, payload) {
    state.mineState.orderVipCard = payload;
  },
}
